package com.hk.daoimple;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.hk.dao.UserDAO;
import com.hk.dtos.UserDTO;

public class UserDAOImple
		extends SqlMapClientDaoSupport
		implements UserDAO{
	
	@SuppressWarnings("unchecked")
	@Override
	public List<UserDTO> getUserList() {		
		return this.getSqlMapClientTemplate().
					queryForList("usermap.getUserList");
	}

	@Override
	public void addUser(UserDTO dto) {
		// TODO Auto-generated method stub
		this.getSqlMapClientTemplate().insert("usermap.addUser", dto);
	}
}
